module nade.keyboard;

import derelict.sdl.sdl;

public import nade.controller;


class Keyboard {
	static {
		KeyboardController get()
		{
			if(_controller is null)
				return _controller = new KeyboardController();

			return _controller;
		}

		void bind(SDLKey key, DEvent pevent, DEvent revent = null)
		{
			get.bind(key, pevent, revent);
		}

		void unbind(SDLKey key, DEvent pevent, DEvent revent = null)
		{
			get.unbind(key, pevent, revent);
		}

		private {
			KeyboardController		_controller;
		}
	}
}
